package cn.itsource.ymcc.aggregation;

import cn.itsource.ymcc.result.PageList;
import lombok.Data;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

//聚合结果封装
@Data
public class AggrPageList<T> extends PageList<T> {

    private Map<String, List<AggrTermsBucket>> aggrs = new HashMap<>();

    public AggrPageList(long total,List<T> rows,Map<String, List<AggrTermsBucket>> aggrs){
        super(total , rows);
        this.aggrs = aggrs;
    }

    public AggrPageList(){
    }

    public AggrPageList(Map<String, List<AggrTermsBucket>> aggrs){
        this.aggrs = aggrs;
    }
}